#include <iostream>
#include <vector>
#include <memory>
#include <algorithm>
using namespace std;

int main(){
	vector<int> res;
	res.push_back(1);
	res.push_back(2);
	res.push_back(3);
	res.push_back(4);
	res.push_back(5);
	res.push_back(6);
	res.push_back(7);
	
	vector<int>::iterator pos = find(res.begin(),res.end(),4);
	vector<int>::iterator pos1 = res.insert(pos,20);
//	res.erase(pos);
//	pos++;
	cout<<*pos1<<endl;

	vector<int>::iterator it = res.begin();
	while(it != res.end()){
		cout<<*it<<" ";
		it++; 
	}
	cout<<endl;
	
	return 0;
} 
